package outil;

public class ActionChaine implements Action {

    private final Action[] pTAction;

    public final static Action instance(Action[] pTAction) {
        return new ActionChaine(pTAction);
    }

    public ActionChaine(Action[] pTAction) {
        this.pTAction = pTAction;
    }

    public void exec() {
        for (int a = 0; a < pTAction.length; a++) {
            pTAction[a].exec();
        }
    }
}
